package com.duofan.gmall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.duofan.gmall.common.utils.PageUtils;
import com.duofan.gmall.member.entity.MemberEntity;
import com.duofan.gmall.member.exception.PhoneExistException;
import com.duofan.gmall.member.exception.UsernameExistException;
import com.duofan.gmall.member.vo.SocialUser;
import com.duofan.gmall.member.vo.UserLoginVo;
import com.duofan.gmall.member.vo.UserRegVo;

import java.util.Map;

/**
 * 会员
 *
 * @author Vincent
 * @email wu_peizhen@126.com
 * @date 2023-05-08 06:49:57
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void reg(UserRegVo vo) throws PhoneExistException, UsernameExistException;

    MemberEntity login(UserLoginVo vo);

    MemberEntity login(SocialUser vo) throws Exception;
}

